﻿using MechAddin.Command.编辑模式;
using MechAddin.Command.零件刷;
using MechAddin.Common;
using SolidWorks.Interop.sldworks;
using SolidWorks.Interop.swconst;

namespace MechAddin
{
    internal class SW控制器:SWBase
    {
        public void 编辑模式()
        {
            编辑模式Model.编辑模式(SWDoc);
        }
        public void 移动零件()
        {
            if (SWDoc2 == null) { return; }
            Face2 face = SelMgr.GetSelectedFace(1);
            if (face == null) { SendMsg("第一个面选择平面"); return; }
            var view=new Command.移动零件.移动零件View();
            view.ShowDialog();
        }

        public void 零件刷()
        {

            if (SWDoc2==null)
            {
                SendMsg("请在装配体界面操作");
                return;
            }
            零件刷Model.零件刷(SWDoc);

        }
    }
}
